<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/4/7
 * Time: 22:31
 */

namespace app\admin\model;


use think\Model;

class WeixiouModel extends Model
{
    protected $name = 'weixiou';

    public function getlist($order_mun){
        return self::field('userid,addtime,type,type as quxiao_remake')
                        ->where('orderid',$order_mun)
                        ->where('type','in','1,2')
                        ->select();
    }

    public function getUseridAttr($v){
        return Member::get($v)['real_name'];
    }

    public function getTypeAttr($v){
        if ($v==1){
            return "师傅抢单";
        }elseif ($v==2){
            return "订单完成";
        }
    }

    public function getQuxiaoRemakeAttr($v){
        return '';
    }










}